let day = 1;

// *这里可以利用{}去把对应的代码块执行包起来
switch (day) {
  case 1: {
    console.log("Mondey");
    break;
  }
  case 2: {
    console.log("Tuesday");
    break;
  }
  case 3: {
    console.log("星期3");
    break;
  }
  default: {
    console.log("默认值");
  }
}

// switch 挑战 challenge

let grade = "C";
switch (grade) {
  case "A": {
    console.log("Congratulations!");
    break;
  }

  case "F": {
    console.log("You did not goods");
    break;
  }

  case "C":
  case "D":
  case "B": {
    console.log("youdi ok!! pruckae tyae xnywo wuxnzt");
    break;
  }

  default: {
    console.log("继续加油哦");
  }
}

// challenge two
let dayOfWeek = "Tuesday";

switch (dayOfWeek) {
  case "Saturday":
  case "Sunday": {
    console.log("Weekend");

    break;
  }
  case "Monday":
  case "Tuesday":
  case "Wednesday":
  case "Friday": {
    console.log("Weekday");
    break;
  }
  default: {
    console.log("Type error invalid of the week");
  }
}
